翻訳と辞書 |
composite data type : ウィキペディア英語版 | composite data type
In computer science, a composite data type or compound data type is any data type which can be constructed in a program using the programming language's primitive data types and other composite types. The act of constructing a composite type is known as composition. ==C/C++ structures and classes==
A struct is C's and C++'s notion of a composite type, a datatype that composes a fixed set of labeled fields or members. It is so called because of the struct keyword used in declaring them, which is short for ''structure'' or, more precisely, ''user-defined data structure''. In C++, the only difference between a struct and a class is the default access level, which is ''private'' for classes and ''public'' for struct s. Note that while classes and the class keyword were completely new in C++, the C programming language already had a crude type of struct s. For all intents and purposes, C++ struct s form a superset of C struct s: virtually all valid C struct s are valid C++ struct s with the same semantics.
抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「composite data type」の詳細全文を読む
スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース |
Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.
|
|